Gastroesophageal reflux algorithm